export default function ChatBtnList({chatList,onSelect}){
	console.log(chatList,'contacts')
	return(
		<ul>
			{chatList.map((v,index)=>
				<li key={index} onClick={()=>onSelect(v)}>
					<button className="b1">{v.name}</button>
				</li>	
			)}
		</ul>
	)
}